package cn.quevo.spring.enums;

import cn.quevo.core.enums.EnumsInterface;

/**
 * 返回状态基础编码
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018-03-09 14:00:14
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 * @return
 */
public enum UploadStatusEnum implements EnumsInterface {
    FILE_EMPTY(5300, "尚未选择文件"),
    FILE_TYPE_FAILD(5301, "文件类型错误"),
    FILE_TOO_LARGE(5302, "文件超出预定大小"),
    FILE_ILLEGAL(5033,"非法文件或文件损坏"),
    NO_PERMISSIONS(5034,"目录不存在或无权限");

    private Integer code;
    private String value;

    UploadStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return "[" + this.getCode() + "]" + this.getValue();
    }
}
